import { Entity, Column, PrimaryGeneratedColumn, CreateDateColumn, UpdateDateColumn, BaseEntity } from 'typeorm';

//用户充值记录
@Entity('user_pay_list')
export class UserPayList extends BaseEntity {

    @PrimaryGeneratedColumn()
    id: number;

    @Column({
        width: 11,
        comment: "用户id"
    })
    user_id: number;

    @Column({
        length: 20,
        comment: "支付流水号"
    })
    pay_serial_number: string;

    @Column({
        width: 20,
        comment: "支付金额"
    })
    pay_number: number;

    @Column({
        width: 10,
        comment: "支付渠道，1是支付宝，2是微信"
    })
    channel_id: number;

    @CreateDateColumn({
        comment: "创建时间"
    })
    create_time: Date;

    @UpdateDateColumn({
        comment: "更新时间"
    })
    update_time: Date;

}